/* 整体布局背景渐变 */
.homepage-layout {
    min-height: 100vh;
    position: relative;
}

/* 头部样式 */
.homepage-header {
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 50px;
}

/* 左侧菜单 */
.homepage-sider {
    background-color: #fafafa;
}

/* 内容区域 */
.homepage-content {
    padding: 20px;
    background: linear-gradient(135deg, #f0f2f5, #c9d6ff);
}

/* 主页主要区域 */
.homepage-main {
    max-width: 1000px;
    margin: 0 auto;
}

/* 统一模块卡片样式 */
.module-card {
    height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* 欢迎卡片特殊样式 */
.welcome-card {
    padding: 50px;
    height: 300px !important;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #fff;
}

/* 快捷操作、热门服务、商家公告卡片 */
.action-card {
    border: 1px solid #87e8de;
    border-radius: 8px;
}

/* 服务列表 */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin: 8px 0;
    font-size: 16px;
    color: #595959;
}

/* 用户评价卡片，缩小占用面积 */
.review-card {
    height: 150px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    border-radius: 8px;
    padding: 10px;
}

/* 占位页面 */
.placeholder-page {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 页脚 */
.homepage-footer {
    text-align: center;
    background-color: #fff;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
}

/* 聊天侧边栏，固定定位，不占用主页空间 */
.chat-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.chat-sidebar.hidden {
    transform: translateX(100%);
}

.chat-sidebar.visible {
    transform: translateX(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.chat-messages {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 5px;
}

.chat-message.user {
    background: #e6f7ff;
    text-align: right;
}

.chat-message.bot {
    background: #f6ffed;
    text-align: left;
}

.chat-input-container {
    margin-top: 10px;
}

/* 切换客服按钮，固定在页面右侧，竖直排列，不随页面滚动而变化 */
.toggle-chat-btn {
    position: fixed;
    right: 10px;
    bottom: 20px;
    width: 50px;
    z-index: 1100;
    border-radius: 0 4px 4px 0;
    padding: 10px 5px;
}
